<?php 

include '../function.php';

try {

	$db = new PDO("mysql:host=127.0.0.1;dbname=school;charset=utf8","root","");



	$sql ="delete from stu where sid>15";


	$res = $db->exec($sql);
	

	var_dump($res);


	// $sql = "select * from stu";


	// $res = $db->query($sql);


	// var_dump($res->fetchAll(PDO::FETCH_ASSOC));





	
} catch (PDOException $e) {

	// var_dump($e);
	echo "Error: ".$e;
}



// var_dump($db);
// 
// 
// 
// 
















 ?>